﻿<div class="jumbotron">
    <div class="row">

        <div class="col-sm-4 col-xs-12">
            <img data-ng-src="{{album.ImageUrl}}" class="img-responsive" />
        </div>
        <div class="col-sm-8 col-xs-12">
            <h3>{{album.Title}}</h3>
            <h4>{{album.Artist}}</h4>
            <p><small><a href="#/EditAlbum/{{album.Id}}">Edit</a></small></p>
        </div>
    </div>
</div>
<div class="row">
    <div class="col col-xs-12">

        <div class="panel panel-default">
            <div class="panel-body">
                <div class="col-sm-2">
                    <span><strong>Tags: </strong></span>
                </div>
                <div class="col-sm-10">
                    <p>
                        <span data-ng-repeat="tag in album.Tags">{{tag.Name}} </span>
                        <span data-ng-show="addingAlbumTag"><input type="text" data-ng-model="newAlbumTag" placeholder="Tag..." /> <input type="button" value="+" data-ng-click="addAlbumTag(newAlbumTag)" class="btn btn-sm btn-success" /> </span>
                        <span><a data-ng-hide="addingAlbumTag" href data-ng-click="addingAlbumTag=true;">+Add</a></span>
                    </p>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="row">
    <div class="col col-xs-12">
        <div class="panel panel-info">
            <div class="panel-heading">
                <h5>Tracks <small><a>+Add</a></small></h5>
            </div>
            <div class="panel-body">
                <table class="table table-hover">
                    <tbody>
                        <tr data-ng-repeat="song in album.Songs">
                            <td>{{song.Title}}</td>
                            <td><span data-ng-repeat="tag in song.Tags">{{tag.Name}} </span><span><a>+Add</a></span></td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>